Fix xenstored watch crash.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 14 Sep 2005 08:41:49 +0000 (08:41 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 14 Sep 2005 08:41:49 +0000 (08:41 +0000)
commit2c0ba8d0753536c7cd9651b0326bcfabd2d20e18
tree0f0239dde301f60a31c0d4232bf33c4d1b807618
parentab4b7e8e65a86fef5f352932f99bfe6415c1b06c
Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstore/testsuite/16block-watch-crash.test [new file with mode: 0644]
tools/xenstore/xenstored_watch.c
tools/xenstore/xs_test.c